package client;

public enum MapleStat {

  SKIN(0x1),
  FACE(0x2),
  HAIR(0x4),
  LEVEL(0x10),
  JOB(0x20),
  STR(0x40),
  DEX(0x80),
  INT(0x100),
  LUK(0x200),
  HP(0x400),
  MAXHP(0x800),
  MP(0x1000),
  MAXMP(0x2000),
  AVAILABLEAP(0x4000),
  AVAILABLESP(0x8000),
  EXP(0x10000),
  FAME(0x20000),
  MESO(0x40000),
  PET(0x180008);
  private final int i;

  private MapleStat(int i) {
    this.i = i;
  }

  public int getValue() {
    return i;
  }

  public static final MapleStat getByValue(final int value) {
    for (final MapleStat stat : MapleStat.values()) {
      if (stat.i == value) {
        return stat;
      }
    }
    return null;
  }

  public static enum Temp {

    STR(0x1),
    DEX(0x2),
    INT(0x4),
    LUK(0x8),
    WATK(0x10),
    WDEF(0x20),
    MATK(0x40),
    MDEF(0x80),
    ACC(0x100),
    AVOID(0x200),
    SPEED(0x400),
    JUMP(0x800);
    private final int i;

    private Temp(int i) {
      this.i = i;
    }

    public int getValue() {
      return i;
    }
  }
}
